package com.geyue.core.service.impl;

import com.geyue.common.base.service.impl.BaseServiceImpl;
import com.geyue.core.mapper.StudentMapper;
import com.geyue.core.model.Student;
import com.geyue.core.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Lyon on 2017/3/27.
 */
@Service
public class StudentServiceImpl extends BaseServiceImpl<Student> implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    public List<Student> all() {
        return studentMapper.queryAll();
    }

    @Override
    public int updateStudentById(int id,int giftMoney) {

        return studentMapper.updateStudentById(id,giftMoney);
    }

    /*@Override
    public Student updateStudent(int id) {
        return studentMapper.updateStudent(id);
    }

    @Override
    public int updatePassword(int stuId) {

        return studentMapper.updatePassword(stuId);
    }*/
}
